import axios from '@/libs/request/axios'
//规则信息
export const getRuleInfoList = (params) => {
    return axios.request({
        url: `/product/productRuleInfo/getRuleInfoList`,
        params: params,
        method: 'get'
    })
}
//规则信息
export const getRuleInfoListForce = (params) => {
    return axios.request({
        url: `/product/productRuleInfo/getRuleInfoListForce`,
        method: 'POST',
        data: params
    })
}
// 删除
export const delById = (id,params) => {
    return axios.request({
        url:`/product/productRuleInfo/delById/${id}`,
        params:params,
        method: 'DELETE'
    })
}
// 添加
export const addRule = (params) => {
    return axios.request({
        url: '/product/productRuleInfo/add',
        data:params,
        method: 'post'
    })
}
// 编辑
export const editRule = (params) => {
    return axios.request({
        url: '/product/productRuleInfo/edit',
        data:params,
        method: 'post'
    })
}
// 设置有效
export const effective = (params) => {
    return axios.request({
        url: `/product/productRuleInfo/effective`,
        params: params,
        method: 'post'
    })
}
// 设置无效
export const invalid = (params) => {
    return axios.request({
        url: `/product/productRuleInfo/invalid`,
        params: params,
        method: 'post'
    })
}

